var pageii = null;
var grid = null;
$(function(){
	

	 grid = lyGrid({
		pagId : 'paging',
		l_column : [{
			colkey : "licenseNo",
			name : "车牌号"
		}, {
			colkey : "carBossName",
			name : "车老板姓名"
		},{
			colkey : "carBossNumber",
			name : "车老板联系电话"
		},{
			colkey : "driverName",
			name : "司机名称"
		},{
			colkey : "driverNumber",
			name : "司机联系电话"
		}],
		jsonUrl : rootPath + '/motorcadeInfo/motorcade_dateils_findbyPage.shtml',
		dymCol:true,
		checkbox : true,
		serNumber : false
	}); 
	var cbox = grid.getSelectedCheckbox();
	$(".caredit").click(function(){
		alert($(this).next().val());
		pageii = layer.open({
			title : "修改车队明细",
			type : 2,
			area : [ "800px", "100%" ],
			content : rootPath + '/motorcadeInfo/motorcade_edit.shtml?id=' + cbox
		});
	});
});